﻿@model IEnumerable<GSLMS.Entity.TB_SYS_LOG>
@{
    Layout = null;
    ViewBag.ViewTitle = "日志信息";
    var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.TB_SYS_LOG ?? new GSLMS.Entity.TB_SYS_LOG();
 
    
}
<form id="pagerForm" method="get" action="System/Loger/index?action=page&OpID=@ViewData["OperateID"]">
<input type="hidden" name="pageNum" value="1" />
<input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
<input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
<input type="hidden" name="USERNAME" value="@SearchParma.USERNAME" />
<input type="hidden" name="OPDATE" value="@SearchParma.OPDATE" />
<input type="hidden" name="MODULECODE" value="@SearchParma.MODULECODE" />
<input type="hidden" name="OPSIGN" value="@SearchParma.OPSIGN" />
</form>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this)" id="Form_@ViewData["CurrentController"]" action="System/Loger/index?action=search&OpID=@ViewData["OperateID"]"
    method="post">
    <div class="searchBar">
       
        <table class="searchContent">
            <tr>
                <td>
                    用户：
                </td>
                <td>
                    @Html.TextBox("USERNAME", SearchParma.USERNAME)
                </td>
                <td>
                    操作日期：
                </td>
                <td>
                    @Html.TextBox("OPDATE", SearchParma.OPDATE)
                </td>
                <td>
                    操作模块：
                </td>
                <td>
                   @Html.TextBox("MODULECODE", SearchParma.MODULECODE)
                </td>
                 <td>
                    操作：
                </td>
                <td>
                   @Html.TextBox("OPSIGN", SearchParma.OPSIGN)
                </td>
                <td align="right">
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="submit" name="submit">
                                            检索</button></div>
                                </div>
                            </li>
                            <li>
                                <div class="buttonActive">
                                    <div class="buttonContent">
                                        <button type="reset" name="reset">
                                            重置</button></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</div>
<div class="pageContent">
    @Html.Partial("Buttons")
    <table class="list" width="100%" layoutH="138" id="tableLogerList">
        <thead>
            <tr class="header">
                <th style="width: 60px">
                    用户
                </th>
                <th>
                    操作日期
                </th>
                <th>
                    操作模块
                </th>
                <th>
                    操作
                </th>
                
            </tr>
        </thead>
        @foreach (var item in Model)
        {            
            <tr target="Loger_ID" rel="@item.ID"  ISUSER="@item.USERNAME" USERSTATUS="@item.MODULECODE">
                <td>
                    @item.USERNAME
                </td>
                <td>
                    @item.OPDATE
                </td>
                <td>
                    @item.MODULECODE
                </td>
                <td>
                    @item.OPSIGN
                </td>
            </tr>
           
        }
    </table>
</div>
@Html.Partial("PageBar")
<script type="text/javascript">
    var GoPIR = function (obj) {
        $this = $(obj);
        var selectedObj = $("#tableLogerList").find(".selected");
        var id = selectedObj.attr("rel");
        if (id) {

            alert(id);
        }
        else {
            alertMsg.warn("请选择一条记录!");
        }
        return false;
    }

    function pdialogOpen($this, url, title) {
        //var title = $this.attr("title") || $this.text();
        var rel = $this.attr("rel") || "_blank";
        var options = {};
        var w = $this.attr("width");
        var h = $this.attr("height");
        if (w) options.width = w;
        if (h) options.height = h;
        options.max = eval($this.attr("max") || "false");
        options.mask = eval($this.attr("mask") || "false");
        options.maxable = eval($this.attr("maxable") || "true");
        options.minable = eval($this.attr("minable") || "true");
        options.fresh = eval($this.attr("fresh") || "true");
        options.resizable = eval($this.attr("resizable") || "true");
        options.drawable = eval($this.attr("drawable") || "true");
        options.close = eval($this.attr("close") || "");
        options.param = $this.attr("param") || "";
        //var url = unescape($this.attr("href")).replaceTmById($(event.target).parents(".unitBox:first"));
        DWZ.debug(url);
        if (!url.isFinishedTm()) {
            alertMsg.error($this.attr("warn") || DWZ.msg("alertSelectMsg"));
            return false;
        }
        $.pdialog.open(url, rel, title, options);
    }



</script>
